﻿<%@ Page Title="Edit user" Language="C#" MasterPageFile="~/Administration/MasterPage.master" AutoEventWireup="true" CodeFile="Detail.aspx.cs" Inherits="Administration_Users_Detail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPHMain" runat="Server">
    <asp:MultiView ID="MultiViewPage" runat="server" ActiveViewIndex="0">
        <asp:View ID="ViewForm" runat="server">
            <table class="form">
                <tbody>
                    <tr>
                        <th>
                            <asp:Label ID="Label1" runat="server" Text="User name:" />
                        </th>
                        <td>
                            <altairis:IconHyperLink ID="IconHyperLinkDelete" runat="server" Icon="UserDelete" Text="Delete this user" NavigateUrl="Default.aspx?DeleteUserName={0}" CssClass="strong" Style="float: right" />
                            <asp:Label ID="LabelUserName" runat="server" CssClass="code" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <asp:Label ID="Label3" runat="server" Text="E-mail:" AssociatedControlID="TextBoxEmail" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="E-mail is missing" Text="*" Display="Dynamic" />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="E-mail syntax invalid" Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                        </th>
                        <td>
                            <asp:TextBox ID="TextBoxEmail" runat="server" Width="500" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <asp:Label ID="Label4" runat="server" Text="Full name:" AssociatedControlID="TextBoxFullName" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBoxFullName" ErrorMessage="Full name is missing" Text="*" Display="Dynamic" />
                        </th>
                        <td>
                            <asp:TextBox ID="TextBoxFullName" runat="server" Width="500" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <asp:Label ID="Label2" runat="server" Text="New password:" AssociatedControlID="TextBoxPassword" />
                        </th>
                        <td>
                            <asp:TextBox ID="TextBoxPassword" runat="server" Width="500" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <asp:Label ID="Label5" runat="server" Text="Enabled:" AssociatedControlID="CheckBoxEnabled" />
                        </th>
                        <td>
                            <asp:CheckBox ID="CheckBoxEnabled" runat="server" Text="this user is enabled (can login)" />
                        </td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="2">
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                            <asp:Button ID="ButtonSubmit" runat="server" Text="Submit" OnClick="ButtonSubmit_Click" />
                            <asp:Button ID="ButtonCancel" runat="server" Text="Cancel" CausesValidation="false" OnClick="ButtonCancel_Click" />
                        </td>
                    </tr>
                </tfoot>
            </table>
        </asp:View>
        <asp:View ID="ViewMessage" runat="server">
            <asp:Literal ID="LiteralErrorMessage" runat="server" Text="Edit user failed: <code>{0}</code>." />
        </asp:View>
    </asp:MultiView>
</asp:Content>
